package com.zsqat.eshop.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zsqat.common.utils.PageUtils;
import com.zsqat.eshop.ware.entity.PurchaseEntity;
import com.zsqat.eshop.ware.vo.MergeVo;
import com.zsqat.eshop.ware.vo.PurchaseDoneVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author zsqat
 * @email 491192853@qq.com
 * @date 2020-11-19 15:37:52
 */
public interface PurchaseService extends IService<PurchaseEntity> {

  PageUtils queryPage(Map<String, Object> params);

  // 未领取采购订单，以便合并订单时查找
  PageUtils queryPageUnreceive(Map<String, Object> params);
  // 合并订单
  void mergePurchase(MergeVo mergeVo);
  // 领取采购单(采购人员通过手机领取属于自己名下的采购单)
  void received(List<Long> ids);
  // 完成采购单(采购人员通过手机完成属于自己名下的采购单，没完成的需要写没完成原因)
  void done(PurchaseDoneVo doneVo);
}

